<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        table{
            border-spacing: 20px;
        }
        td{
            border: 1px solid #686868;
            text-align: center;
        }
    </style>
</head>
<body>
    
</body>
<script>
    document.write("<table>");
    var a = 1;
    
    while(a <= 9){
        document.write("<tr>");
        var b = 1;

        while(b <= a){
            document.write("<td>");
            document.write(a + "*" + b + "=" + a * b);
            document.write("</td>");
            b++;
        }

        document.write("</tr>");
        a++;
    }

    document.write("</table>");
</script>
</html>